<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/resources/include/header.jsp"%>
<head>
    <title>${applicationScope.__SYSTEM_ATTRIBUTE__.page_title.content } - 首页</title>
    <base target="_self" />
    <%@ include file="/resources/include/plugin.jsp"%>
    <%@ include file="/resources/include/extra.jsp"%>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/resources/css/home/home.css" media="all" />
    <script src="${pageContext.request.contextPath }/resources/js/hq/jquery.SuperSlide.2.1.1.js"></script>
    <script>
        $(function () {
            jQuery(".slideBox").slide({mainCell: ".bd ul", autoPlay: false, interTime: 5000});
            $('.textbox').css('width', $('.newslist').width() - 150 + 'px');
            $(window).resize(function () {
                $('.textbox').css('width', $('.newslist').width() - 150 + 'px');
            });
            $(".newslist ul li").each(function (index) {
                if (index > 4) {
                    $(this).hide();
                }
                ;
            });
        });
        
    </script>
</head>
<body>
    <jsp:include page="/core/base/layout/header" />
    <jsp:include page="/core/base/layout/left" />
    <jsp:include page="/core/base/layout/shortcut" />
    <div class="main-container container-fluid">
        <form action="" method="post" id="tdjsForm">
            <input type="hidden" name="articleId" id="thearticleId">
            <input type="hidden" name="channelId" id="thechannelId">
        </form>
        <div class="row view-list">
            <c:forEach items="${shortcutList}" var="s" varStatus="index"> 
                <c:choose>
                    <c:when test="${index.index <= 5 }">
                        <div class="col-md-2 col-sm-4 col-xs-6 view-libox">
                            <a href="${pageContext.request.contextPath }/${s.url}" style="color: #fff; text-decoration: none;">
                                <div class="row view-li">
                                    <div class="col-md-6 col-xs-6 img-box">
                                        <i class="fa fa-${s.icon_fa}" style="font-size: 25px;"></i>
                                    </div>

                                    <div class="col-md-6 col-xs-6 text-box">
                                        <h4>${s.limit_name}</h4> 
                                        <span>${index.index+1}</span>
                                    </div>

                                </div>
                            </a>
                        </div>
                    </c:when>
                </c:choose>
            </c:forEach> 
        </div>
    </div>
</body>
</html>